import request from '@/utils/request'

export function listMiniBanner(data) {
    return request({
        url: '/miniBanners/list',
        method: 'post',
        data: data
    })
}

export function getWenzhangs(data) {
  return request({
    url: '/app/v1/wenzhang/list',
    method: 'post',
    data: data
  })
}

export function getGoods(data) {
  return request({
    url: '/app/v1/good/list',
    method: 'post',
    data: data
  })
}


export function getMiniBanner(keyId) {
    return request({
        url: '/miniBanners/detail/' + keyId,
        method: 'get'
    })
}

export function addMiniBanner(data) {
    return request({
        url: '/miniBanners/add',
        method: 'post',
        data: data
    })
}

export function updateMiniBanner(data) {
    return request({
        url: '/miniBanners/update',
        method: 'put',
        data: data
    })
}

export function delMiniBanner(keyId) {
    return request({
        url: '/miniBanners/delete/' + keyId,
        method: 'delete'
    })
}

export function exportMiniBanner(data) {
    return request({
        url: '/miniBanners/post/export',
        method: 'get',
        params: data
    })
}
